﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class Program
{
    static async Task Main(string[] args)
    {
        double a = 5.0; // 替换为实际的值
        double b = 3.0; // 替换为实际的值

        double result = await CalculateExpressionAsync(a, b);

        Console.WriteLine($"a^58 + b^50 = {result}");
    }

    static async Task<double> CalculateExpressionAsync(double a, double b)
    {
        double result = await CalculatePowerAsync(a, 58) + await CalculatePowerAsync(b, 50);
        return result;
    }

    static async Task<double> CalculatePowerAsync(double number, int exponent)
    {
        return await Task.Run(() => Math.Pow(number, exponent));
    }
}
